.my-popover_content {
  z-index: 200000;
  //border: 1px solid #e4e7ed;
  box-shadow: 0 0 12px rgba(0, 0, 0, .12);
}

.my-tooltip_content {
  box-shadow: 0 6px 20px rgba(25, 25, 26, .06), 0 2px 12px rgba(25, 25, 26, .04);;
  border-radius: 8px;
  background-color: white;
  padding: 4px;
}

.popper-arrow {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px;
  border-color: transparent transparent #f0f0f0 transparent;
  position: absolute;
  margin-top: -10px;
}

.my-select-middle {
  height: 32px !important;
}

.my-select {
  width: 100%;
  height: 24px;
  border-radius: 5px;
  margin-right: 6px;
  //border: 1px solid #dcdfe6;
  box-shadow: 0 0 0 1px var(--my-border-color) inset;
  cursor: pointer;

  .my-select-input {
    flex: 1;
    display: flex;
    //height: 100%;
    //line-height: 24px;
    //text-align: center;
    justify-content: center;
    align-items: center;
    font-size: 13px;
  }

  .my-select-input_placeholder {
    color: gray;
  }

  .my-select-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
  }

  .my-select-arrow-middle {
    height: 32px !important;
    line-height: 32px !important;
  }

  //&:hover:not(.my-icon-disabled) {
  //  background: var(--tool-style-highlight-bg);
  //}
}

.my-style-font_arrow {
  font-size: 7px;
  width: 12px;
  height: 24px;
  line-height: 24px;
}

/*
 * Container style
 */
.ps {
  overflow: hidden !important;
  overflow-anchor: none;
  -ms-overflow-style: none;
  touch-action: auto;
  -ms-touch-action: auto;
}

/*
 * Scrollbar rail styles
 */
.ps__rail-x {
  display: none;
  opacity: 0;
  transition: background-color .2s linear, opacity .2s linear;
  -webkit-transition: background-color .2s linear, opacity .2s linear;
  height: 15px;
  /* there must be 'bottom' or 'top' for ps__rail-x */
  bottom: 0;
  /* please don't change 'position' */
  position: absolute;
}

.ps__rail-y {
  display: none;
  opacity: 0;
  transition: background-color .2s linear, opacity .2s linear;
  -webkit-transition: background-color .2s linear, opacity .2s linear;
  width: 15px;
  /* there must be 'right' or 'left' for ps__rail-y */
  right: 0;
  /* please don't change 'position' */
  position: absolute;
}

.ps--active-x > .ps__rail-x,
.ps--active-y > .ps__rail-y {
  display: block;
  background-color: transparent;
}

.ps:hover > .ps__rail-x,
.ps:hover > .ps__rail-y,
.ps--focus > .ps__rail-x,
.ps--focus > .ps__rail-y,
.ps--scrolling-x > .ps__rail-x,
.ps--scrolling-y > .ps__rail-y {
  opacity: 0.6;
}

.ps .ps__rail-x:hover,
.ps .ps__rail-y:hover,
.ps .ps__rail-x:focus,
.ps .ps__rail-y:focus,
.ps .ps__rail-x.ps--clicking,
.ps .ps__rail-y.ps--clicking {
  background-color: #eee;
  opacity: 0.9;
}

/*
 * Scrollbar thumb styles
 */
.ps__thumb-x {
  background-color: #aaa;
  border-radius: 6px;
  transition: background-color .2s linear, height .2s ease-in-out;
  -webkit-transition: background-color .2s linear, height .2s ease-in-out;
  height: 6px;
  /* there must be 'bottom' for ps__thumb-x */
  bottom: 2px;
  /* please don't change 'position' */
  position: absolute;
}

.ps__thumb-y {
  background-color: #aaa;
  border-radius: 6px;
  transition: background-color .2s linear, width .2s ease-in-out;
  -webkit-transition: background-color .2s linear, width .2s ease-in-out;
  width: 6px;
  /* there must be 'right' for ps__thumb-y */
  right: 2px;
  /* please don't change 'position' */
  position: absolute;
}

.ps__rail-x:hover > .ps__thumb-x,
.ps__rail-x:focus > .ps__thumb-x,
.ps__rail-x.ps--clicking .ps__thumb-x {
  background-color: #999;
  height: 11px;
}

.ps__rail-y:hover > .ps__thumb-y,
.ps__rail-y:focus > .ps__thumb-y,
.ps__rail-y.ps--clicking .ps__thumb-y {
  background-color: #999;
  width: 11px;
}

/* MS supports */
@supports (-ms-overflow-style: none) {
  .ps {
    overflow: auto !important;
  }
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .ps {
    overflow: auto !important;
  }
}


.my-scrollbar {
  position: relative;
  //height: calc(100% - 50px);
  //width: calc(100% - 230px);
  overflow: auto;
  scrollbar-width: none;
  //padding: 30px 260px 20px 30px;

  .my-scrollbar__bar {

    position: absolute;
    right: 2px;
    bottom: 2px;
    z-index: 1;
    border-radius: 4px;
  }

  .is-vertical {
    width: 6px;
    top: 2px;
  }

  .my-scrollbar__thumb {
    position: relative;
    display: block;
    height: 0;
    width: 100%;
    cursor: pointer;
    border-radius: inherit;
    background-color: var(--my-text-color-secondary);
    transition: .3s background-color;
    opacity: .3;
  }

  //.design-content {
  //  left: 0;
  //  top: 0;
  //  height: 100%;
  //  width: var(--panel-width);
  //  position: relative;
  //  background: white;
  //  //box-sizing: border-box;
  //  box-shadow: 5px 10px 15px 5px rgba(0, 21, 41, 0.08);
  //}
  //
  //.design-content-bg {
  //  //pointer-events: none;
  //  background-image: -webkit-gradient(linear, left top, right top, color-stop(3%, rgba(0, 0, 0, .1)), color-stop(3%, transparent)), -webkit-gradient(linear, left bottom, left top, color-stop(3%, rgba(0, 0, 0, .1)), color-stop(3%, transparent));
  //  background-image: linear-gradient(90deg, rgba(0, 0, 0, .1) 3%, transparent 0), linear-gradient(1turn, rgba(0, 0, 0, .1) 3%, transparent 0);
  //  background-size: 5mm 5mm;
  //  background-position: 0 0;
  //}
}

.hover-non-blod {
  .ps__rail-x {
    &:hover {
      .ps__thumb-x {
        height: 4px !important;
      }
    }
  }

  .ps__rail-y {
    &:hover {
      .ps__thumb-y {
        width: 4px !important;
      }
    }
  }

}

.disabled-scroll-bar {
  .ps__rail-x {
    pointer-events: none;

    &:hover {
      .ps__thumb-x {
        height: 4px !important;
      }
    }
  }

  .ps__rail-y {
    pointer-events: none;

    &:hover {
      .ps__thumb-y {
        width: 4px !important;
      }
    }
  }

}


.ps {
  height: 100%;

  &:hover {
    .ps__rail-y {
      opacity: 1 !important;
    }

    .ps__rail-x {
      opacity: 1 !important;
    }
  }

  .ps__rail-x {
    //background-color: #999 !important;
    background-color: transparent !important;
    opacity: 0;

    &:hover {
      .ps__thumb-x {
        height: 9px;
      }
    }

    .ps__thumb-x {
      background-color: var(--drag-h-color) !important;
      height: 4px;
      right: 0 !important;
    }

  }

  .ps__rail-y {
    //background-color: #999 !important;
    background-color: transparent !important;
    opacity: 0;

    &:hover {
      .ps__thumb-y {
        width: 9px;
      }
    }

    .ps__thumb-y {
      background-color: var(--drag-h-color) !important;
      width: 4px;
      right: 0 !important;
    }

  }

  .ps--clicking {
    .ps__thumb-x {
      height: 9px !important;
    }

    .ps__thumb-y {
      width: 9px !important;
    }
  }

}

.is-disabled {
  cursor: not-allowed !important;

  * {
    cursor: not-allowed !important;

  }
}

.my-input {

  .is-focus {
    box-shadow: 0 0 0 1px #409eff inset !important;
  }

  .my-input__wrapper {
    display: inline-flex;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    padding: 1px 11px;
    background-color: var(--my-fill-color-blank);
    background-image: none;
    border-radius: var(--my-border-radius-base);
    cursor: text;
    transition: box-shadow .2s cubic-bezier(.645, .045, .355, 1);
    transform: translate3d(0, 0, 0);
    box-shadow: 0 0 0 1px var(--my-border-color) inset;

    .my-input__inner {
      width: 100%;
      flex-grow: 1;
      -webkit-appearance: none;
      color: var(--my-text-color-regular);
      font-size: inherit;
      height: 22px;
      line-height: 22px;
      padding: 0;
      outline: 0;
      border: none;
      background: 0 0;
      box-sizing: border-box;

      &::-webkit-input-placeholder {
        color: rgba(0, 0, 0, 0.25);
      }

      &:-moz-placeholder {
        color: rgba(0, 0, 0, 0.25);
      }

      &::-moz-placeholder {
        color: rgba(0, 0, 0, 0.25);
      }

      &:-ms-input-placeholder {
        color: rgba(0, 0, 0, 0.25);
      }
    }
  }
}


::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-thumb {
  background-color: #0003;
  border-radius: 10px;
  transition: all .2s ease-in-out;
}

.my-textarea__inner {
  position: relative;
  display: block;
  resize: vertical;
  padding: 5px 11px;
  line-height: 1.5;
  box-sizing: border-box;
  width: 100%;
  font-size: inherit;
  font-family: inherit;
  color: var(--my-text-color-regular);
  background-color: var(--my-fill-color-blank);
  background-image: none;
  -webkit-appearance: none;
  box-shadow: 0 0 0 1px var(--my-border-color) inset;
  border-radius: var(--my-border-radius-base);
  transition: box-shadow .2s cubic-bezier(.645, .045, .355, 1);
  border: none;

  min-height: 31px;

  &:focus {
    outline: none;
    box-shadow: 0 0 0 1px var(--my-input-focus-border-color) inset;
  }
}

.my-dialog {
  z-index: 100000;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: auto;

  .my-dialog_wrapper {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: auto;

    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px 4px rgba(0, 0, 0, .04), 0 8px 20px rgba(0, 0, 0, .08);;

    background: rgba(0, 0, 0, 0.5);

    .my-dialog_header {
      padding: 5px;
      background: white;

      .my-dialog_head_title {
        padding: 5px;
        flex: 1;
        //border-radius: 2px;
        //box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .04), 0px 8px 20px rgba(0, 0, 0, .08);;
        background: white;
      }

      .my-dialog_head_slot {
        flex: 1;
      }

      .my-dialog_head_close {
        align-items: center;
        justify-content: center;
        height: 30px;
        width: 30px;
        background: white;
      }
    }


    .my-dialog_content {
      padding: 5px;
      //border-radius: 2px;
      background: white;
    }

    .is-fullscreen {
      padding: 0 !important;
      width: 100% !important;
      height: 100% !important;
    }
  }
}

.my-popup-parent--hidden {
  overflow: hidden;
}

.my-popover_reference {
}

.my-form {

  .my-form-item {
    margin-bottom: 8px;

    .my-form-item-label {

      display: inline-flex;
      justify-content: flex-end;
      align-items: flex-start;
      flex: 0 0 auto;
      color: var(--my-text-color-regular);
      padding: 0 12px 0 0;
      box-sizing: border-box;

      height: 24px;
      line-height: 24px;
      font-size: 12px;
    }

    .my-form-item__content {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      flex: 1;
      line-height: 24px;
      position: relative;
      font-size: 12px;
      min-width: 0;
    }
  }
}

.my-divider--horizontal {
  display: block;
  height: 1px;
  width: 100%;
  margin: 18px 0;
  border-top: var(--my-border-style);
}

.my-divider {
  position: relative;


  .my-divider__text {

    left: 50%;
    transform: translateX(-50%) translateY(-50%);

    position: absolute;
    background-color: #fff;
    padding: 0 20px;
    font-weight: 500;
    color: var(--my-text-color-primary);
    font-size: 14px;
  }
}

.disabled {
  cursor: not-allowed;
}

.ps {
  position: relative;
}


// 滑动渐变过渡效果
.slide-fade-move,
.slide-fade-enter-active,
.slide-fade-leave-active {
  transition: all 0.3s;
}

.slide-fade-enter-from,
.slide-fade-leave-to {
  transform: translateY(-16px);
  -ms-transform: translateY(-16px); /* IE 9 */
  -webkit-transform: translateY(-16px); /* Safari and Chrome */
  opacity: 0;
}

.slide-fade-leave-active {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.m-message-wrap {
  position: fixed;
  z-index: 300000;
  width: 100%;
  left: 0;
  right: 0;
  pointer-events: none; // 保证整个message区域不遮挡背后元素响应鼠标事件
  .m-message {
    text-align: center;

    &:not(:last-child) {
      margin-bottom: 8px;
    }

    .m-message-content {
      display: inline-flex;
      align-items: center;
      padding: 9px 12px;
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05);
      pointer-events: auto; // 保证内容区域部分可以正常响应鼠标事件
      .u-svg {
        display: inline-block;
        width: 16px;
        height: 16px;
        margin-right: 8px;
      }

      .circular {
        display: inline-block;
        animation: loading-rotate 2s linear infinite;
        @keyframes loading-rotate {
          100% {
            transform: rotate(360deg);
          }
        }

        .path {
          stroke-dasharray: 90, 150;
          stroke-dashoffset: 0;
          stroke-width: 5;
          stroke-linecap: round;
          animation: loading-dash 1.5s ease-in-out infinite;
          @keyframes loading-dash {
            0% {
              stroke-dasharray: 1, 200;
              stroke-dashoffset: 0;
            }

            50% {
              stroke-dasharray: 90, 150;
              stroke-dashoffset: -40px;
            }
            100% {
              stroke-dasharray: 90, 150;
              stroke-dashoffset: -120px;
            }
          }
        }
      }

      .u-content {
        display: inline-block;
        font-size: 14px;
        color: rgba(0, 0, 0, 0.88);
        line-height: 22px;
      }
    }
  }
}

.my-popover_container {
  overflow: hidden;
}
